	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5k_amb_probe
_i5k_amb_probe:                         ## @i5k_amb_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, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_chipset_ids@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	movl	$24, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_i5k_find_amb_registers
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	incq	%rbx
	movq	(%r12), %rax
	movq	(%rax,%r14), %rsi
	addq	$16, %r14
	testq	%rsi, %rsi
	jne	LBB0_2
	jmp	LBB0_13
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_4:
	movq	16(%r15), %rdi
	movq	(%r12), %rax
	movl	%ebx, %ebx
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rsi
	callq	_i5k_channel_probe
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	16(%r15), %rdi
	addq	$8, %rdi
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rsi
	incq	%rsi
	callq	_i5k_channel_probe
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movq	_DRVNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_ioremap_nocache
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_i5k_amb_hwmon_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %r13d
	movl	8(%r15), %edi
	callq	_iounmap
	jmp	LBB0_12
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_13
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_12:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_release_mem_region
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_chipset_ids,8,3                ## @chipset_ids
	.comm	_DRVNAME,4,2                    ## @DRVNAME
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_i5k_amb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5k_amb_probe
_i5k_amb_probe:                         ; @i5k_amb_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x23, #0
Lloh3:
	adrp	x22, _chipset_ids@GOTPAGE
Lloh4:
	ldr	x22, [x22, _chipset_ids@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	mov	w24, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_i5k_find_amb_registers
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	ldr	x1, [x8, x24]
	add	x24, x24, #16
	cbnz	x1, LBB0_2
; %bb.4:
	mov	x21, x0
	b	LBB0_14
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_6:
	ldr	x0, [x19, #16]
	ldr	x8, [x22]
	and	x9, x23, #0xffffffff
	lsl	x23, x9, #4
	ldr	x1, [x8, x23]
	bl	_i5k_channel_probe
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	add	x1, x8, #1
	bl	_i5k_channel_probe
	ldp	w1, w0, [x19]
Lloh8:
	adrp	x8, _DRVNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRVNAME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_request_mem_region
	cbz	x0, LBB0_11
; %bb.8:
	ldp	w1, w0, [x19]
	bl	_ioremap_nocache
	str	w0, [x19, #8]
	cbz	w0, LBB0_12
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_i5k_amb_hwmon_init
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.10:
	ldr	w0, [x19, #8]
	bl	_iounmap
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_12:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	ldp	w1, w0, [x19]
	bl	_release_mem_region
LBB0_14:
	mov	x0, x19
	bl	_kfree
LBB0_15:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_chipset_ids,8,3                ; @chipset_ids
	.comm	_DRVNAME,4,2                    ; @DRVNAME
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_i5k_amb_probe
.subsections_via_symbols
