	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imon_init_display
_imon_init_display:                     ## @imon_init_display
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_imon_display_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movq	(%rbx), %rax
	movq	_IMON_DISPLAY_TYPE_LCD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_imon_lcd_class@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	movq	_imon_vfd_class@GOTPCREL(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_usb_register_dev
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registering iMON display with sysfs\n"

	.comm	_imon_display_attr_group,4,2    ## @imon_display_attr_group
L_.str.1:                               ## @.str.1
	.asciz	"Could not create display sysfs entries(%d)"

	.comm	_IMON_DISPLAY_TYPE_LCD,8,3      ## @IMON_DISPLAY_TYPE_LCD
	.comm	_imon_lcd_class,4,2             ## @imon_lcd_class
	.comm	_imon_vfd_class,4,2             ## @imon_vfd_class
L_.str.2:                               ## @.str.2
	.asciz	"could not get a minor number for display\n"

	.no_dead_strip	_imon_init_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imon_init_display
_imon_init_display:                     ; @imon_init_display
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x1, _imon_display_attr_group@GOTPAGE
Lloh3:
	ldr	x1, [x1, _imon_display_attr_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_create_group
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_2:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _IMON_DISPLAY_TYPE_LCD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMON_DISPLAY_TYPE_LCD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _imon_vfd_class@GOTPAGE
Lloh10:
	ldr	x10, [x10, _imon_vfd_class@GOTPAGEOFF]
Lloh11:
	adrp	x11, _imon_lcd_class@GOTPAGE
Lloh12:
	ldr	x11, [x11, _imon_lcd_class@GOTPAGEOFF]
	cmp	x8, x9
	csel	x1, x11, x10, eq
	mov	x0, x20
	bl	_usb_register_dev
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_info
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registering iMON display with sysfs\n"

	.comm	_imon_display_attr_group,4,2    ; @imon_display_attr_group
l_.str.1:                               ; @.str.1
	.asciz	"Could not create display sysfs entries(%d)"

	.comm	_IMON_DISPLAY_TYPE_LCD,8,3      ; @IMON_DISPLAY_TYPE_LCD
	.comm	_imon_lcd_class,4,2             ; @imon_lcd_class
	.comm	_imon_vfd_class,4,2             ; @imon_vfd_class
l_.str.2:                               ; @.str.2
	.asciz	"could not get a minor number for display\n"

	.no_dead_strip	_imon_init_display
.subsections_via_symbols
