	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88172_bind
_ax88172_bind:                          ## @ax88172_bind
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	64(%r14), %rax
	movq	(%rax), %r13
	movq	_AX88172_EEPROM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_get_endpoints
	movq	_AX_CMD_WRITE_GPIOS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %r15
	movl	%r13d, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	$5, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rax
	movzbl	%ah, %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	$5, %edi
	callq	_msleep
	movl	(%r12), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	$5, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_AX88172_CMD_READ_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r9
	callq	_asix_read_cmd
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	48(%r14), %rax
	movl	16(%rax), %edi
	movl	(%r15), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	48(%r14), %rax
	leaq	8(%r14), %r15
	movq	%rax, 40(%r14)
	movq	_asix_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_asix_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movabsq	$133143986239, %rax             ## imm = 0x1F0000003F
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_asix_get_phy_addr
	movl	%eax, 16(%r14)
	movq	48(%r14), %rdi
	movq	_ax88172_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rdi)
	movq	_ax88172_ethtool_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rdi)
	movq	_MII_BMCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_BMCR_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_asix_mdio_write
	movq	48(%r14), %rdi
	movl	16(%r14), %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rdx
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	%r15, %rdi
	callq	_mii_nway_restart
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movl	%r12d, %ebx
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AX88172_EEPROM_LEN,4,2         ## @AX88172_EEPROM_LEN
	.comm	_AX_CMD_WRITE_GPIOS,4,2         ## @AX_CMD_WRITE_GPIOS
	.comm	_AX88172_CMD_READ_NODE_ID,4,2   ## @AX88172_CMD_READ_NODE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read AX_CMD_READ_NODE_ID failed: %d"

	.comm	_asix_mdio_read,4,2             ## @asix_mdio_read
	.comm	_ax88172_netdev_ops,4,2         ## @ax88172_netdev_ops
	.comm	_ax88172_ethtool_ops,4,2        ## @ax88172_ethtool_ops
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ax88172_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ax88172_bind
lCPI0_0:
	.long	63                              ; 0x3f
	.long	31                              ; 0x1f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ax88172_bind:                          ; @ax88172_bind
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0, #64]
	ldr	x23, [x8]
Lloh7:
	adrp	x8, _AX88172_EEPROM_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AX88172_EEPROM_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	bl	_usbnet_get_endpoints
Lloh10:
	adrp	x24, _AX_CMD_WRITE_GPIOS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AX_CMD_WRITE_GPIOS@GOTPAGEOFF]
	ldr	w1, [x24]
	ubfx	x2, x23, #16, #8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x24]
	ubfx	x2, x23, #8, #8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x24]
	and	x2, x23, #0xff
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	w0, #5
	bl	_msleep
	mov	x0, x19
	mov	w1, #128
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _AX88172_CMD_READ_NODE_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AX88172_CMD_READ_NODE_ID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x5, x20
	bl	_asix_read_cmd
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #16]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19, #48]
	str	x8, [x19, #40]
Lloh15:
	adrp	x8, _asix_mdio_read@GOTPAGE
Lloh16:
	ldr	x8, [x8, _asix_mdio_read@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh18:
	adrp	x8, _asix_mdio_write@GOTPAGE
Lloh19:
	ldr	x8, [x8, _asix_mdio_write@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x20, x19
	str	d0, [x20, #8]!
	mov	x0, x19
	bl	_asix_get_phy_addr
	mov	x1, x0
	str	w0, [x19, #16]
	ldr	x0, [x19, #48]
Lloh22:
	adrp	x8, _ax88172_netdev_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ax88172_netdev_ops@GOTPAGEOFF]
Lloh24:
	adrp	x9, _ax88172_ethtool_ops@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ax88172_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x0]
Lloh26:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	bl	_asix_mdio_write
	ldr	x0, [x19, #48]
	ldr	w1, [x19, #16]
Lloh32:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _ADVERTISE_ALL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _ADVERTISE_CSMA@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w3, w8, w9
	bl	_asix_mdio_write
	mov	x0, x20
	bl	_mii_nway_restart
Lloh44:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	w0, [x19]
	cbz	w0, LBB0_11
; %bb.6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	mov	x21, x0
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x21
	sub	sp, x29, #48
	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_10:
	mov	x21, x0
Lloh50:
	adrp	x0, l_.str@PAGE
Lloh51:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dbg
	b	LBB0_8
LBB0_11:
Lloh52:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AX88172_EEPROM_LEN,4,2         ; @AX88172_EEPROM_LEN
	.comm	_AX_CMD_WRITE_GPIOS,4,2         ; @AX_CMD_WRITE_GPIOS
	.comm	_AX88172_CMD_READ_NODE_ID,4,2   ; @AX88172_CMD_READ_NODE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read AX_CMD_READ_NODE_ID failed: %d"

	.comm	_asix_mdio_read,4,2             ; @asix_mdio_read
	.comm	_ax88172_netdev_ops,4,2         ; @ax88172_netdev_ops
	.comm	_ax88172_ethtool_ops,4,2        ; @ax88172_ethtool_ops
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ax88172_bind
.subsections_via_symbols
