	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib3000mc_attach               ## -- Begin function dib3000mc_attach
	.p2align	4, 0x90
_dib3000mc_attach:                      ## @dib3000mc_attach
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	movq	%r12, 8(%rax)
	movl	%r14d, (%rax)
	leaq	24(%rax), %r14
	movq	%rax, 32(%rax)
	movq	_dib3000mc_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_dib3000mc_identify
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_DIB3000MC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	callq	_dibx000_init_i2c_master
	movq	%rbx, %rdi
	movl	$1037, %esi                     ## imm = 0x40D
	movl	$12592, %edx                    ## imm = 0x3130
	callq	_dib3000mc_write_word
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dib3000mc_ops,4,2              ## @dib3000mc_ops
	.comm	_DIB3000MC,4,2                  ## @DIB3000MC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib3000mc_attach               ; -- Begin function dib3000mc_attach
	.p2align	2
_dib3000mc_attach:                      ; @dib3000mc_attach
	.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, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x22, [x0, #8]
	str	w19, [x0]
	add	x19, x0, #24
	stp	x0, x21, [x0, #32]
Lloh3:
	adrp	x1, _dib3000mc_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dib3000mc_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_dib3000mc_identify
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_kfree
LBB0_3:
	mov	x19, #0
	b	LBB0_5
LBB0_4:
	add	x0, x20, #16
Lloh5:
	adrp	x8, _DIB3000MC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIB3000MC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	bl	_dibx000_init_i2c_master
	mov	x0, x20
	mov	w1, #1037
	mov	w2, #12592
	bl	_dib3000mc_write_word
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dib3000mc_ops,4,2              ; @dib3000mc_ops
	.comm	_DIB3000MC,4,2                  ; @DIB3000MC
.subsections_via_symbols
