	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3fwrn5_i2c_probe
_s3fwrn5_i2c_probe:                     ## @s3fwrn5_i2c_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	leaq	28(%rax), %rdi
	callq	_mutex_init
	movq	_S3FWRN5_MODE_COLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	$1, (%r12)
	movq	%rbx, 8(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	callq	_s3fwrn5_i2c_parse_dt
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	8(%r12), %rdi
	addq	$4, %rdi
	movl	20(%r12), %esi
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	8(%r12), %rdi
	addq	$4, %rdi
	movl	16(%r12), %esi
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r12, %r15
	addq	$4, %r15
	movq	8(%r12), %rdx
	addq	$4, %rdx
	movq	_S3FWRN5_I2C_MAX_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_i2c_phy_ops@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_s3fwrn5_probe
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movq	_s3fwrn5_i2c_irq_thread_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_S3FWRN5_I2C_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_s3fwrn5_remove
	movl	%r14d, %ebx
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_S3FWRN5_MODE_COLD,4,2          ## @S3FWRN5_MODE_COLD
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ## @GPIOF_OUT_INIT_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s3fwrn5_en"

	.comm	_GPIOF_OUT_INIT_LOW,4,2         ## @GPIOF_OUT_INIT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"s3fwrn5_fw_wake"

	.comm	_i2c_phy_ops,4,2                ## @i2c_phy_ops
	.comm	_S3FWRN5_I2C_MAX_PAYLOAD,4,2    ## @S3FWRN5_I2C_MAX_PAYLOAD
	.comm	_s3fwrn5_i2c_irq_thread_fn,4,2  ## @s3fwrn5_i2c_irq_thread_fn
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_S3FWRN5_I2C_DRIVER_NAME,4,2    ## @S3FWRN5_I2C_DRIVER_NAME
	.no_dead_strip	_s3fwrn5_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3fwrn5_i2c_probe
_s3fwrn5_i2c_probe:                     ; @s3fwrn5_i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	add	x0, x0, #28
	bl	_mutex_init
Lloh3:
	adrp	x8, _S3FWRN5_MODE_COLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S3FWRN5_MODE_COLD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	str	x21, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x21
	bl	_s3fwrn5_i2c_parse_dt
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	ldr	w1, [x20, #20]
Lloh6:
	adrp	x8, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	bl	_devm_gpio_request_one
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	ldr	w1, [x20, #16]
Lloh11:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_devm_gpio_request_one
	tbnz	w0, #31, LBB0_7
; %bb.4:
	add	x21, x20, #4
	ldr	x8, [x20, #8]
	add	x2, x8, #4
Lloh16:
	adrp	x8, _S3FWRN5_I2C_MAX_PAYLOAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S3FWRN5_I2C_MAX_PAYLOAD@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x3, _i2c_phy_ops@GOTPAGE
Lloh20:
	ldr	x3, [x3, _i2c_phy_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_s3fwrn5_probe
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _s3fwrn5_i2c_irq_thread_fn@GOTPAGE
Lloh22:
	ldr	x9, [x9, _s3fwrn5_i2c_irq_thread_fn@GOTPAGEOFF]
	ldr	w1, [x8]
Lloh23:
	ldr	w3, [x9]
Lloh24:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh26:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh30:
	adrp	x8, _S3FWRN5_I2C_DRIVER_NAME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _S3FWRN5_I2C_DRIVER_NAME@GOTPAGEOFF]
Lloh32:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.6:
	ldr	w0, [x21]
	bl	_s3fwrn5_remove
	b	LBB0_9
LBB0_7:
	mov	x22, x0
	b	LBB0_9
LBB0_8:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_S3FWRN5_MODE_COLD,4,2          ; @S3FWRN5_MODE_COLD
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ; @GPIOF_OUT_INIT_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s3fwrn5_en"

	.comm	_GPIOF_OUT_INIT_LOW,4,2         ; @GPIOF_OUT_INIT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"s3fwrn5_fw_wake"

	.comm	_i2c_phy_ops,4,2                ; @i2c_phy_ops
	.comm	_S3FWRN5_I2C_MAX_PAYLOAD,4,2    ; @S3FWRN5_I2C_MAX_PAYLOAD
	.comm	_s3fwrn5_i2c_irq_thread_fn,4,2  ; @s3fwrn5_i2c_irq_thread_fn
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_S3FWRN5_I2C_DRIVER_NAME,4,2    ; @S3FWRN5_I2C_DRIVER_NAME
	.no_dead_strip	_s3fwrn5_i2c_probe
.subsections_via_symbols
