	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic78bx_probe
_nic78bx_probe:                         ## @nic78bx_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_resource_size
	movq	_NIC78BX_USER_LED_IO_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_7:
	movq	(%r12), %r14
	movq	%r12, %rdi
	callq	_resource_size
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	_nic78bx_leds@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax,%rbx)
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_12
LBB0_14:
	movq	_NIC78BX_UNLOCK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NIC78BX_LOCK_REG_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	callq	_outb
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movl	%eax, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing IO resources\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIC78BX_USER_LED_IO_SIZE,8,3   ## @NIC78BX_USER_LED_IO_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"IO region too small\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.2:                               ## @.str.2
	.asciz	"failed to get IO region\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_nic78bx_leds,8,3               ## @nic78bx_leds
	.comm	_NIC78BX_UNLOCK_VALUE,4,2       ## @NIC78BX_UNLOCK_VALUE
	.comm	_NIC78BX_LOCK_REG_OFFSET,8,3    ## @NIC78BX_LOCK_REG_OFFSET
	.no_dead_strip	_nic78bx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic78bx_probe
_nic78bx_probe:                         ; @nic78bx_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_resource_size
Lloh6:
	adrp	x8, _NIC78BX_USER_LED_IO_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIC78BX_USER_LED_IO_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x22, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
Lloh17:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_request_region
	cbz	w0, LBB0_15
; %bb.10:
	ldr	x8, [x21]
	mov	x0, x20
	str	x8, [x0], #8
	bl	_spin_lock_init
Lloh20:
	adrp	x21, _nic78bx_leds@GOTPAGE
Lloh21:
	ldr	x21, [x21, _nic78bx_leds@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x22, #0
	mov	w23, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	str	x20, [x8, x23]
	ldr	x8, [x21]
	add	x8, x8, x23
	sub	x1, x8, #8
	mov	x0, x19
	bl	_devm_led_classdev_register
	cbnz	w0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_12
LBB0_14:
Lloh22:
	adrp	x8, _NIC78BX_UNLOCK_VALUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NIC78BX_UNLOCK_VALUE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _NIC78BX_LOCK_REG_OFFSET@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NIC78BX_LOCK_REG_OFFSET@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	mov	w0, #0
	b	LBB0_8
LBB0_15:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _EBUSY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing IO resources\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIC78BX_USER_LED_IO_SIZE,8,3   ; @NIC78BX_USER_LED_IO_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"IO region too small\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.2:                               ; @.str.2
	.asciz	"failed to get IO region\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_nic78bx_leds,8,3               ; @nic78bx_leds
	.comm	_NIC78BX_UNLOCK_VALUE,4,2       ; @NIC78BX_UNLOCK_VALUE
	.comm	_NIC78BX_LOCK_REG_OFFSET,8,3    ; @NIC78BX_LOCK_REG_OFFSET
	.no_dead_strip	_nic78bx_probe
.subsections_via_symbols
